
package lohmar.ashar.android.batterySaver.helper;

/**
 * @author Mihai HARAS (Lohmar ASHAR) 2011
 */
public interface IServiceHelper {
    /**
     * @return <b>true</b> if the service is running,<br/>
     *         <b>false</b> otherwise
     */
    boolean isServiceEnabled();

    /**
     * @return <b>true</b> if the device has this service available,<br/>
     *         <b>false</b> otherwise
     */
    boolean isServicePresent();

    /**
     * sets the state of the service
     * 
     * @param serviceEnabled - <br/>
     *            <b><i>true</i></b> should start the service,<br/>
     *            <b><i>false</i></b> to stop the service
     */
    void setServiceEnabled(boolean serviceEnabled);

    String getServiceName();
}
